package com.nuonuo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author duan
 * @version 1.0
 * @date 2023/10/24 19:24
 */

@Service
public class AService {

    @Autowired
    AService(BService bService) throws InterruptedException {
        Thread.sleep(3000);
        bService.sayHello();
    }

    public String sayHello() {
        return "A says: hello";
    }
}
